package com.lengxf.pay.starter.parent.bean;

import com.lengxf.pay.common.enums.PayStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class QueryResult extends PayBaseResult {


    //订单金额
    private BigDecimal amount;

    //订单号
    private String orderNo;

    //三方系统订单号
    private String outOrderNo;

    //支付日期
    private LocalDate dateDay;

    //支付时间
    private LocalDateTime dateTime;

    //支付渠道
    private String channel;

    //支付状态
    private PayStatusEnum payStatus;


    public QueryResult(String code, String msg, Boolean successFlag) {
        super.setOutMsg(msg);
        super.setOutCode(code);
        super.setSuccess(successFlag);
    }


}
